package org.tea.inventory.domain.tea;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.tea.inventory.db.domain.Storage;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 供应商资质对象 supplier_qualified
 * 
 * @author dongxb
 * @date 2025-04-14
 */
@ApiModel(value = "供应商资质对象")
@Data
@NoArgsConstructor
public class SupplierQualified implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键自动递增 */
    private Long id;

    /** 资质ID */
    @ApiModelProperty(value = "资质ID")
    private String qualifiedId;

    /** 资质名称 */
    @ApiModelProperty(value = "资质名称")
    private String qualifiedName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    /** 资质附件1 */
    @ApiModelProperty(value = "附件id，多个id之间用',' 隔开")
    private String qualifiedFile;

    @ApiModelProperty(value = "附件文件信息")
    private List<Storage> files;

    /** 资质附件2 */
    @ApiModelProperty(value = "资质附件2")
    private String qualifiedFile1;

    /** 资质附件3 */
    @ApiModelProperty(value = "资质附件3")
    private String qualifiedFile2;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "添加时间")
    private Date addTime;

    /** 添加人 */
    @ApiModelProperty(value = "添加人")
    private String addUser;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date modifyTime;

    /** 修改人 */
    @ApiModelProperty(value = "修改人")
    private String modifyUser;

    /** 除删标记0正常1删除 */
    private String delFlag;

    /** 备注 */
    @ApiModelProperty(value = "备注")
    private String remarks;

    /** 搴斿晢渚汭D */
    @ApiModelProperty(value = "搴斿晢渚汭D")
    private String supplierId;

    /** 供应商序号 */
    @ApiModelProperty(value = "供应商序号")
    private String supplierNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setQualifiedId(String qualifiedId) 
    {
        this.qualifiedId = qualifiedId;
    }

    public String getQualifiedId() 
    {
        return qualifiedId;
    }

    public void setQualifiedName(String qualifiedName) 
    {
        this.qualifiedName = qualifiedName;
    }

    public String getQualifiedName() 
    {
        return qualifiedName;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setQualifiedFile(String qualifiedFile) 
    {
        this.qualifiedFile = qualifiedFile;
    }

    public String getQualifiedFile() 
    {
        return qualifiedFile;
    }

    public void setQualifiedFile1(String qualifiedFile1) 
    {
        this.qualifiedFile1 = qualifiedFile1;
    }

    public String getQualifiedFile1() 
    {
        return qualifiedFile1;
    }

    public void setQualifiedFile2(String qualifiedFile2) 
    {
        this.qualifiedFile2 = qualifiedFile2;
    }

    public String getQualifiedFile2() 
    {
        return qualifiedFile2;
    }

    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    public void setAddUser(String addUser) 
    {
        this.addUser = addUser;
    }

    public String getAddUser() 
    {
        return addUser;
    }

    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    public void setModifyUser(String modifyUser) 
    {
        this.modifyUser = modifyUser;
    }

    public String getModifyUser() 
    {
        return modifyUser;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public void setSupplierId(String supplierId) 
    {
        this.supplierId = supplierId;
    }

    public String getSupplierId() 
    {
        return supplierId;
    }

    public void setSupplierNum(String supplierNum) 
    {
        this.supplierNum = supplierNum;
    }

    public String getSupplierNum() 
    {
        return supplierNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("qualifiedId", getQualifiedId())
            .append("qualifiedName", getQualifiedName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("qualifiedFile", getQualifiedFile())
            .append("qualifiedFile1", getQualifiedFile1())
            .append("qualifiedFile2", getQualifiedFile2())
            .append("addTime", getAddTime())
            .append("addUser", getAddUser())
            .append("modifyTime", getModifyTime())
            .append("modifyUser", getModifyUser())
            .append("delFlag", getDelFlag())
            .append("remarks", getRemarks())
            .append("supplierId", getSupplierId())
            .append("supplierNum", getSupplierNum())
            .toString();
    }
}
